/**
 * @created by lirz on 2016.11.17
 */

require('../../both/base');

require('./UserSliderList.scss');
import React from 'react';
import SliderList from '../../../../../mock/userSliderList';

const NONE_PROPS = undefined;

class UserSliderList extends React.Component {

    renderSlideList () {
        return SliderList.map(function (item, key) {
            return React.createElement(
                'li',
                {key: key},
                React.createElement(
                    'span',
                    NONE_PROPS,
                    item.title,
                    React.createElement(
                        'i',
                        {className: 'fa fa-angle-right'}
                        )
                )
            )
        });
    }

    render() {
        return React.createElement(
            'div',
            {className: 'slider-sidebar'},
            React.createElement(
                'ul',
                NONE_PROPS,
                this.renderSlideList()
            )
        );
    }
}


export default UserSliderList;